home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / DTS QT Utilities.Aug-95 / Projects & Test Apps / QT Internals / Mac Framework / MacMain.c < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-10  |  1.1 KB  |  57 lines  |  [TEXT/MPCC]

  1. /*
  2.     File:        MovieShell.c
  3.  
  4.     Contains:    Simple Mac shell for testing QuickTime.
  5.  
  6.     Written by:    DTS
  7.  
  8.     Copyright:    © 1994-1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.        <1>         12/20/94    khs        first file
  13.        
  14. */
  15.  
  16.  
  17. // INCLUDES
  18. #include <stdio.h>
  19. #include <sioux.h>
  20.  
  21. #include "DTSQTUtilities.h"
  22. #include "MacFramework.h"
  23.  
  24.  
  25. // ______________________________________________________________________
  26. // MAIN
  27. void main(void)
  28. {
  29.     OSErr anErr;
  30.  
  31. // This is for controlling the sioux window under Metrowerks (5.0 forward)
  32. #ifdef USESIOUX    
  33.     SIOUXSettings.initializeTB = false;
  34.     SIOUXSettings.setupmenus = false;
  35.     SIOUXSettings.standalone = false;
  36.     SIOUXSettings.asktosaveonclose = true;
  37. #endif // USESIOUX
  38.  
  39.     InitStack(30000);
  40.     InitMacEnvironment(10L);                    // 10 * MoreMasters
  41.     InitMenubar();
  42.     
  43.     if( !QTUIsQuickTimeInstalled() )
  44.         ExitToShell();
  45.         
  46. #if powerc    
  47.     if( !QTUIsQuickTimeCFMInstalled() )
  48.         ExitToShell();                                // I could disable features as well.
  49. #endif 
  50.  
  51.     anErr = EnterMovies(); DebugAssert(anErr == noErr);
  52.     if(anErr != noErr)
  53.         ExitToShell();
  54.  
  55.     MainEventLoop();
  56. }
  57.